Reviewing Requests
Overview
Recommendations are requested whenever a page with a recommendation placement is viewed by a customer. These recommendations depend on the information that the client site sends to Algonomy regarding the "context" of the request. The context includes the type of page, items viewed by the customer and other important information that helps Algonomy to apply rules and strategies to return the most relevant recommendations.
By learning how to review the recommendations returned by Omnichannel Personalization, retailers can understand the reasons for the recommendations and make decisions about changes that might helps in return more relevant recommendations.
This set of documents are only guides to help you validate your instrumentation. The codes provided are samples to help showcase the proper syntax and parameters.
When a page is loaded by a customer, the instrumentation on the page (the Omnichannel Personalization code) sends information to the Omnichannel Personalization engine, which then determines which rules and strategies apply and then sends a response back to the page, which then fills the placement(s) on the page with recommendations.
This guide assumes that its readers:
-
Are experienced web or application developers.
-
Are familiar with JavaScript.
-
Have a background in the ecommerce/retail industry.
-
Understand how to populate functions with dynamic page-specific values.
Recommendations Request
A client site will include the Omnichannel Personalization library and send us basic context information. This information is used to “seed” the recommendations. This provides the context of what may be relevant to the user and allows us to target merchandising rules. Important pieces of that context include things like the category of the product being viewed.
Once the request for recommendations have returned from the Omnichannel Personalization server, they are inserted into the page so that they can be seen by users. This is done one of two ways:
-
The client site identifies the areas on each page for the placements to be injected by the Omnichannel Personalization library. (HTML response)
-
The client site receives a JSON payload within a callback function and owns the injection of the recommendations. (JSON response)
Reviewing the Recommendation Request
Chrome
-
Open the Chrome Developer Tools and refresh the page.
-
Click the Network tab.
-
Click Filter and search for “p13n”.
-
You will see p13n.js and p13njsgenerated.js. You are looking for the dynamic file p13njsgenerated. Click on it to open.
-
Click the Headers tab and find “Query String Parameters”. This is the information that the site is sending Omnichannel Personalization.
-
Click the Response tab to see the response from Omnichannel Personalization. This is the code that contains the product recommendations.
FireFox
Reviewing the requests as they were sent to Omnichannel Personalization can easily be done using FireBug developer tool as well.
Here are instructions for Firebug:
-
Locate the Net tab. Ensure it is enabled and if it has no contents then refresh the page.
-
Use the search box to find the Algonomy script.
-
Expand the request in the console with the arrow and click the Params tab. With this you can see the values that are sent to Algonomy.
-
Right-click the URL and choose Copy Location.
-
Use this URL to evaluate the data sent to Omnichannel Personalization. Additionally, it can be used to report pages with errors in or missing recommendations.
Reporting Issues to Algonomy
Who to Contact?
If the issue is related to current project work, please contact the Algonomy contacts working on this project with you such as the Account Manager, Project Manager, or Client Solutions Engineer.
If this issue is not related to current or recent project work, please contact support@richrelevance.com.
What Information to Send?
When reporting an issue you need to capture some basic information:
-
What is the page URL?
-
What is the p13n_generated.js request?
-
Is this issue specific to any user behavior or other information needed to reproduce?
-
What was the expected behavior?
-
What was the actual behavior?